package com.oop.demo05;
//所有的类都默认继承Object类
public class Person /*extends Object*/ {
    private int money;
    public Person() {
    }

    public Person(int money) {
        this.money = money;
    }

    public void say(){
        System.out.println("人都可以说话！");
    }

    public void setMoney(int money) {
        this.money = money;
    }

    public int getMoney() {
        return money;
    }
}
